﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_edit.aspx.cs" Inherits="admin_admin_edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>管理员修改密码</title>

<link href="../css/StyleSheet.css" rel="StyleSheet" type="text/css"/>
<link href="css/css.css" rel="StyleSheet" type="text/css"/>
</head>
<body style="text-align:left; margin:0px; padding:0px; border:0px;">
    <form id="form1" runat="server">
    <div>
        <br />
        <table id="TABLE1" align="center"  class="table_css" >
            <tr>
                <td colspan="2" style="font-size: 14px; height: 24px; text-align: center; color: #ffffff; background-color: #FF6600;">
                    管理员修改密码</td>
            </tr>
            <tr>
                <td>
                    老 密 码：</td>
                <td >
                    <asp:TextBox ID="adminoldpwd" TextMode="Password" runat="server" Width="80px"></asp:TextBox>
                    <br />                       
                    <span style="color:Red; font-size:9px;">（密码以字母开头，长度在6~18之间，只能包含字符、数字和下划线）</span>
                </td>
            </tr>
            <tr>
                <td>
                    新 密 码：</td>
                <td >
                    <asp:TextBox ID="adminpwd" TextMode="Password" runat="server" Width="80px"></asp:TextBox>
                    <br />                       
                    <span style="color:Red; font-size:9px;">（密码以字母开头，长度在6~18之间，只能包含字符、数字和下划线）</span>
                </td>
            </tr>
            <tr>
                <td>
                    确认新密码：</td>
                <td>
                    <asp:TextBox ID="adminpwd1" runat="server" TextMode="Password" Width="80px"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="adminpwd"
            ControlToValidate="adminpwd1" Display="Dynamic" ErrorMessage="*两次输入密码不一致"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2" style=" text-align: center; background-color: #AFAFAF;">
                    <asp:Button ID="Button1" CssClass="blueButtonCss3" runat="server" OnClick="Button1_Click" Text="　修　改　" />
                    &nbsp;&nbsp;&nbsp;<input id="Reset1" class="blueButtonCss3" type="reset" value="　重　置　" /></td>
            </tr>
        </table>
    
    </div>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="adminoldpwd"
            ErrorMessage="*老密码不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="adminoldpwd" Display="Dynamic" 
            ErrorMessage="*老密码格式有误" ValidationExpression="^[a-zA-Z]\w{5,17}$"></asp:RegularExpressionValidator>
        <asp:CustomValidator ID="CustomValidator2" runat="server" ControlToValidate="adminoldpwd" Display="Dynamic"
            ErrorMessage="*老密码错误" OnServerValidate="CustomValidator2_ServerValidate"></asp:CustomValidator>
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="adminpwd"
            ErrorMessage="*新密码不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="adminpwd" Display="Dynamic" 
            ErrorMessage="*新密码格式有误" ValidationExpression="^[a-zA-Z]\w{5,17}$"></asp:RegularExpressionValidator>
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="adminpwd1"
            ErrorMessage="*确认密码不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
    </form>
</body>
</html>
